<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../plugins/layui/css/layui.css"  media="all">

</head>
<body  class="layui-layout-body">
    <div class="layui-layout layui-layout-admin" style="margin-top: 1%;margin-right: 10%">
        <form class="layui-form" id="menuForm">
            <input type="text" name="menuId"  hidden th:value="${SysMenu.menuId}">
            <div style="margin-top: 2%">
                <div class="layui-form-item">
                    <label class="layui-form-label"><菜单名称></菜单名称></label>
                    <div class="layui-input-block">
                        <input type="text" name="name" required lay-verify="required" placeholder="菜单名称" class="layui-input" th:value="${SysMenu.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">URL</label>
                    <div class="layui-input-block">
                        <input type="text" name="url" required lay-verify="required" placeholder="URL" class="layui-input" th:value="${SysMenu.url}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">权限</label>
                    <div class="layui-input-block">
                        <input type="text" name="perms" required lay-verify="required" placeholder="URL" class="layui-input" th:value="${SysMenu.perms}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">类型</label>
                    <div class="layui-input-inline">
                        <select name="status" lay-verify="required">
                            <option value="0"  th:selected="${SysMenu.type == 0 }">一级菜单</option>
                            <option value="1"  th:selected="${SysMenu.orderNum == 1 }">二级菜单</option>
                            <option value="2"  th:selected="${SysMenu.orderNum == 2 }">按钮</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">图标</label>
                    <div class="layui-input-block">
                        <input type="text" name="icon" required lay-verify="required" placeholder="图标" class="layui-input" th:value="${SysMenu.icon}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-block">
                        <input type="text" name="orderNum" required lay-verify="required" placeholder="排序" class="layui-input" th:value="${SysMenu.orderNum}">
                    </div>
                </div>
            </div>
        </form>

    </div>
    <div class="layui-footer" align="left">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-radius" onclick="update()">更新</button>
            <button class="layui-btn layui-btn-danger layui-btn-radius" onclick="shut()">关闭</button>
        </div>
    </div>
</body>
<script src="../../plugins/jquery/jquery.min.js"></script>
<script src="../../plugins/layui/layui.js"></script>
<script src="../../modules/menu/js/menuEdit.js"></script>
</html>